<!DOCTYPE html>
<html lang="en">
<head>
  <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no,width=device-width,height=device-height">
  <meta charset="UTF-8">
  <meta name="Author" content="haley">
  <meta name="Keywords" content="前端最常用的UI插件">
  <meta name="Description" content="最常用的UI插件">
  <script crossorigin="anonymous" integrity="sha384-6ePHh72Rl3hKio4HiJ841psfsRJveeS+aLoaEf3BWfS+gTF0XdAqku2ka8VddikM" src="https://lib.baomitu.com/jquery/1.11.3/jquery.min.js"></script>
  <link crossorigin="anonymous" integrity="sha384-pdapHxIh7EYuwy6K7iE41uXVxGCXY0sAjBzaElYGJUrzwodck3Lx6IE2lA0rFREo" href="https://lib.baomitu.com/twitter-bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
  <link href="../../../css/page.css" rel="stylesheet">
  <script crossorigin="anonymous" integrity="sha384-pPttEvTHTuUJ9L2kCoMnNqCRcaMPMVMsWVO+RLaaaYDmfSP5//dP6eKRusbPcqhZ" src="https://lib.baomitu.com/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
  <script crossorigin="anonymous" integrity="sha384-8t+aLluUVnn5SPPG/NbeZCH6TWIvaXIm/gDbutRvtEeElzxxWaZN+G/ZIEdI/f+y" src="https://lib.baomitu.com/vue/2.6.10/vue.min.js"></script>
  <script src="../../../js/page.js"></script>
  <script src="../../../js/changeTitle.js"></script>
  <link href="../../../imgs/favicon.ico" rel="shortcut icon">
  <script src="../../../js/goToHome.js"></script>
  <!--核心文件 s-->
  <script src="js/toTop.js"></script>
  <link href="css/toTop.css" rel="stylesheet">
  <!--核心文件 e-->
  <title></title>
  <script>
    var data={
      title:'返回页面顶部和首页',
      content:{
        intro:{
          list:[
            {
              title:'使用说明：',
              className:'bs-callout-info',
              list:[
                {title:'基础配置：',content:'jquery-1.11.3.min.js'}
                ,{title:'需要的文件及代码：',content:'toTop.js toTop.css 核心代码'}
                ,{title:'如何使用：',content:'引入相应的文件，复制相应的代码'}
              ]
            }
          ]
        }
      }
    };
  </script>
</head>
<body>
<div id="page">
  <div class="container">
    <h3 class="text-center">{{title}}</h3>
    <div class="bs-callout" :class="item.className" v-for="item in content.intro.list">
      <h4>{{item.title}}</h4>
      <ul>
        <li v-for="item2 in item.list"><b>{{item2.title}}</b>{{item2.content}}</li>
      </ul>
    </div>
  </div>
  <script>
    var page = new Vue({
      el: '#page',
      data: data
    });
  </script>
</div>

<div class="container">
  <section class="panel panel-info">
    <div class="panel-heading">返回页面顶部和首页</div>
    <div class="panel-body">
      <pre>
&lt;!-- html -->
&lt;div class="asid_share" id="asid_share">
  &lt;div class="asid_share_box relative red_bag">
    &lt;a href="/">&lt;img alt="返回首页" title="返回首页" class="adid_icon" src="" style="display: none;">&lt;b class="asid_title">返回首页&lt;/b>&lt;/a>
  &lt;/div>
  &lt;div class="asid_share_box relative" style="">
    &lt;a href="#">&lt;img alt="返回顶部" title="返回顶部" class="adid_icon" src="">&lt;/a>
  &lt;/div>
&lt;/div>
&lt;!-- js -->
&lt;script>
  $(function () {
    $('#asid_share').hhShare({
      cenBox: 'asid_share_box',  //里边的小层
      icon: 'adid_icon',
      addClass: 'red_bag',
      titleClass: 'asid_title',
      triangle: 'asid_share_triangle', //鼠标划过显示图层，边上的小三角
      showBox: 'asid_sha_layer' //鼠标划过显示图层
    });
  });
&lt;/script>
&lt;!-- 另外需要引入单独的js和css文件-->
      </pre>
      <!--核心代码 s-->
      <div class="asid_share" id="asid_share">
        <div class="asid_share_box relative red_bag">
          <a href="/"><img alt="返回首页" title="返回首页" class="adid_icon" src="" style="display: none;"><b class="asid_title">返回首页</b></a>
        </div>
        <div class="asid_share_box relative" style="">
          <a href="#"><img alt="返回顶部" title="返回顶部" class="adid_icon" src=""></a>
        </div>
      </div>
      <script>
        $(function () {
          $('#asid_share').hhShare({
            cenBox: 'asid_share_box',  //里边的小层
            icon: 'adid_icon',
            addClass: 'red_bag',
            titleClass: 'asid_title',
            triangle: 'asid_share_triangle', //鼠标划过显示图层，边上的小三角
            showBox: 'asid_sha_layer' //鼠标划过显示图层
          });
        });
      </script>
      <!--核心代码 e-->
    </div>
  </section>
</div>
<div style="height: 2000px;"></div>
</body>

</html>
